package model;
// Generated 2-jun-2012 13:28:19 by Hibernate Tools 3.2.1.GA


import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Advertentie generated by hbm2java
 */
@Entity
@Table(name="advertentie"
    ,catalog="dryves"
)
public class Advertentie  implements java.io.Serializable {


     private Integer advId;
     private Lid lid;
     private String advAltTekst;
     private Integer advNrOfClicks;
     private Integer advNrOfViews;
     private Date advDatum;
     private Boolean advDeleted;
     private byte[] advImage;
     private String advProvincie;
     private String advWebsite;

    public Advertentie() {
    }

	
    public Advertentie(Lid lid, String advProvincie, String advWebsite) {
        this.lid = lid;
        this.advProvincie = advProvincie;
        this.advWebsite = advWebsite;
    }
    public Advertentie(Lid lid, String advAltTekst, Integer advNrOfClicks, Integer advNrOfViews, Date advDatum, Boolean advDeleted, byte[] advImage, String advProvincie, String advWebsite) {
       this.lid = lid;
       this.advAltTekst = advAltTekst;
       this.advNrOfClicks = advNrOfClicks;
       this.advNrOfViews = advNrOfViews;
       this.advDatum = advDatum;
       this.advDeleted = advDeleted;
       this.advImage = advImage;
       this.advProvincie = advProvincie;
       this.advWebsite = advWebsite;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="ADV_ID", unique=true, nullable=false)
    public Integer getAdvId() {
        return this.advId;
    }
    
    public void setAdvId(Integer advId) {
        this.advId = advId;
    }
@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="LID_ID", nullable=false)
    public Lid getLid() {
        return this.lid;
    }
    
    public void setLid(Lid lid) {
        this.lid = lid;
    }
    
    @Column(name="ADV_ALT_TEKST")
    public String getAdvAltTekst() {
        return this.advAltTekst;
    }
    
    public void setAdvAltTekst(String advAltTekst) {
        this.advAltTekst = advAltTekst;
    }
    
    @Column(name="ADV_NR_OF_CLICKS")
    public Integer getAdvNrOfClicks() {
        return this.advNrOfClicks;
    }
    
    public void setAdvNrOfClicks(Integer advNrOfClicks) {
        this.advNrOfClicks = advNrOfClicks;
    }
    
    @Column(name="ADV_NR_OF_VIEWS")
    public Integer getAdvNrOfViews() {
        return this.advNrOfViews;
    }
    
    public void setAdvNrOfViews(Integer advNrOfViews) {
        this.advNrOfViews = advNrOfViews;
    }
    @Temporal(TemporalType.DATE)
    @Column(name="ADV_DATUM", length=10)
    public Date getAdvDatum() {
        return this.advDatum;
    }
    
    public void setAdvDatum(Date advDatum) {
        this.advDatum = advDatum;
    }
    
    @Column(name="ADV_DELETED")
    public Boolean getAdvDeleted() {
        return this.advDeleted;
    }
    
    public void setAdvDeleted(Boolean advDeleted) {
        this.advDeleted = advDeleted;
    }
    
    @Column(name="ADV_IMAGE")
    public byte[] getAdvImage() {
        return this.advImage;
    }
    
    public void setAdvImage(byte[] advImage) {
        this.advImage = advImage;
    }
    
    @Column(name="ADV_PROVINCIE", nullable=false)
    public String getAdvProvincie() {
        return this.advProvincie;
    }
    
    public void setAdvProvincie(String advProvincie) {
        this.advProvincie = advProvincie;
    }
    
    @Column(name="ADV_WEBSITE", nullable=false)
    public String getAdvWebsite() {
        return this.advWebsite;
    }
    
    public void setAdvWebsite(String advWebsite) {
        this.advWebsite = advWebsite;
    }




}


